package nc.ui.arap.selectedpay;

import nc.ui.pub.bill.BillListPanel;
import nc.vo.arap.exception.ExceptionHandler;
public abstract class BillListChecker {
  protected BillListPanel bill=null;
  public BillListChecker() {
  }
  public BillListChecker(BillListPanel bill)
  {
    this.bill=bill;
  }

  public abstract boolean check() throws Exception;
  public  boolean checkBillItems() throws Exception
  {
    try
    {
      if(this.bill.isValid() && this.check())
      return true;
    else
      return false;
    }
    catch(Exception e)
    {
      ExceptionHandler.consume(e);
      throw e;
    }
  }

}
